Jetfire Wiki
Jazz CMS
Debug
Jetfire Core
Jetfire Language
Jetfire Web Part
Library
Release Notes
Roles
States
Web Service
Workflow Administration
Quick Search
»
Advanced Search »
Back
User
Modified on 2010/12/01 15:24
by
John
Categorized as
Jetfire Core
==User== A 'User' is a [workflow|workflow object] that has first class attributes. When client nexus is started there a user must [login]. If no user is specified the 'Guest User' is logged in. A user may have one or more [role|roles] assigned. Roles give a user special abilities (see [role] for details). {toc} ===Guest User=== The "Guest User" is automatically created when Jetfire is started for the first time. No other users need be created unless advanced functionality is required. ===Creating a User=== A Jetfire User can be created programatically just like [workflow#Creating A Jetfire Workflow Object|creating any workflow object]. A User can be created by 2 techniques. * Jetfire script using the 'new' operator. * A User workflow object can be created using the .net API. ====Jetfire 'new' Operator==== ((( {{ namespace NewUserExample {BR} { {BR} :public workflow Factory{BR} :{ {BR} :: // A method that creates a new User object.{BR} :: public User CreateUser(string userName){BR} :: {{BR} ::: // the new operator creates a new instance ::: // of a User object; ::: return new User(userName);{BR} :: } {BR} :} {BR} }{BR} }}))) [anchor|#Creating a User with a Role] ===Creating a User with a Role=== A Jetfire User can have roles added programatically. To create a role see [Role#Creating a Role|'Creating a Jetfire Role']. ====Jetfire Code to Create a New User with a Role==== ((( {{ namespace NewUserExample {BR} { {BR} :public workflow UserRoleFactory{BR} :{ {BR} :: // A method that creates a new User object.{BR} :: public User CreateUser(string userName, Role role){BR} :: {{BR} ::: // the new operator creates a new instance ::: // of a User object; ::: User user = new User(userName);{BR} ::: user.AddRole(role);{BR} ::: return user;{BR} :: } {BR} :} {BR} }{BR} }})))
Meta Keywords:
Meta Description:
Change Comment:
ScrewTurn Wiki
version 3.0.4.560. Some of the icons created by
FamFamFam
.